﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.Model;
using yb.commerce.DAL;

namespace yb.commerce.BLL
{
    public class ShoppingMethodBusiness
    {
        public bool Add(ShoppingMethod shippingMethod)
        {
            return new ShoppingMethodDAO().Add(shippingMethod);
        }

        public bool Delete(int Id)
        {
            return new ShoppingMethodDAO().Delete(Id);
        }

        public bool Update(ShoppingMethod shippingMethod)
        {
            return new ShoppingMethodDAO().Update(shippingMethod);
        }

        public ShoppingMethod GetEntity(int Id)
        {
            return new ShoppingMethodDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new ShoppingMethodDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
    }
}
